#ifndef __FLASH_H
#define __FLASH_H

#include "main.h"
#include <stdio.h>

#include "i2c - hal.h"
#include "lcd.h"

typedef union 
{
	float float_data;
	int int_data;
	uint8_t data_part[4];
}DATA;

void flash_write(void);
void flash_read(void);
extern float datadad[3];

void write(uint8_t addr,uint8_t data);
void read(uint8_t addr,uint8_t *p);

#endif
